path="pfiles:calendar/" /* Path of Special Events file*/
/* You have this much room on */
/* |----------------41 chars-----------------| 2 lines for comments... */
fr.6="If you know of an upcoming special"
fr.7="event, please inform Ignus Fast!"
options results;arg a;a=left(a,2);signal on SYNTAX;signal on ERROR;signal on IOERR;sx=sendstring;tx=transmit;getuser 28;gr=result
bbsidentify sysop;sname=result;bbsidentify name;bbs=result;y=left(date(s),4);mn="January February March April May June July August September October November December"
fn="cal.";mx=19;pc="###PANIC";tx " c3Welcome to cbCNet Events Calendarc3 2.2!n1";p=right(path,1);if ~(p="/"|p=":") then path=path"/"
if a="EV" then signal EVENT;if a="BD" then fn="cal.bdays.";if a="NO"|a="BD"|a="BO" then signal CONT
if exists(path||fn"bdays."y) then do;sx "cbDo you wish to look at upcoming "bbs" user birthdays?n1c3(Otherwise, you'll see normal events/holidays) ca[y/N/q] c3"
getchar;j=result;tx j;if j=pc | j="Q" then exit;if j="Y" then fn="cal.bdays.";end
CONT:ee="Events";if right(fn,6)="bdays." then ee="User Birthdays";sx "Please wait one moment- setting up "ee" Calendar..."
fr.3="ÀÄÄÄÄÁÄÄÄÄÁÄÄÄÄÁÄÄÄÄÁÄÄÄÄÁÄÄÄÄÁÄÄÄÄÙ";fr.4="³ SU ³ MO ³ TU ³ WE ³ TH ³ FR ³ SA ³";fr.5=center(" "bbs" BBS ",41,hl)
if gr~=2 then do;o="";bk=o;rd=o;gn=o;yl=o;bl=o;mg=o;cy=o;wt=o;bw=o;ct=o;vl="|";hl="-";do i=1 to 7;fr.i=translate(fr.i,"+-++...`""'|","ÃÄÅ´Ú¿ÀÁÙ³");end;end
do c=16 to mx;l.c=left(" ",36);end;if ln>15 then l.16=fr.3;else do;l.14=fr.3;l.15=l.mx;end;do c=3 to mx;tx l.c rd||left(e.c,5)gn||substr(e.c,6)o;end
tx "cePress [enter]g1";if a="BO" then do;fn="cal.bdays.";a="";signal CONT;end;exit
EVENT:getuser 2400096;la=result;do i=1 to la;loadscratch i;j=result;savescratch i-2*i;if ~j then iterate
getuser 1101230;if result then iterate;getuser 1300744;nm=result;getuser 1501082;bd=result;do j=1 to 12;if left(word(mn,j),3)=substr(bd,8,3) then m=j;end
d=substr(bd,5,2)+0;ex="th";es="1 st 2 nd 3 rd 10 th 11 th 12 th 13 th";do l=1 to words(es) by 2;j=word(es,l);if right(d,length(j))=j then ex=word(es,l+1);end
if ~open(file,"ram:cal.bdays",'a') then call open(file,"ram:cal.bdays",'w')